package com.qitianyong.selfclass;

import de.greenrobot.event.EventBus;

/**
 * Created by qitianyong on 2017/3/15.
 */

public class BaseClass {

    public void notifyEmptyBusMessage(int bus_msg){

        Message2EventBus msg = new Message2EventBus();
        msg.__what = bus_msg;
        EventBus.getDefault().post(msg);
    }

    public void notifyBusMessage(int bus_msg, Object object){

        Message2EventBus msg = new Message2EventBus();
        msg.__what = bus_msg;
        msg.object = object;
        EventBus.getDefault().post(msg);
    }
}
